import 'package:flutter_base_framework/base_framework_export.dart';
import 'package:flutter_common_utils/common_utils_export.dart';

class MainVm extends BaseViewModel {
  MainVm();

  int _counter = 0;

  int get counter => _counter;

  @override
  void onCreate() {
    super.onCreate();
    _counter = 20;
    LogUtils.i("HomeVm 我创建了 $_counter,,, ${hashCode}");
  }

  void incrementCounter() {
    _counter++;
    // notifyListeners();
  }
}

class HomeItemData {
  String title;
  int type;

  HomeItemData(
    this.type,
    this.title,
  );
}
